using System;

namespace Rhizome.Model
{
    public sealed class IfNotNull : PropertyCriterionBase<object>
    {
        public IfNotNull(string property) : base(property)
        {
        }

        public IfNotNull()
        {
        }

        protected override bool IsTrue(object value)
        {
            return value != null;
        }

    }
}